﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OAuthAccess
{
    /// <summary>
    /// The exception that is thrown when unexpected network error happend.<br/>
    /// When you specified ignoreable network error, 
    /// if network error happend that have specified Http Status Code,
    /// this exception is not thrown. 
    /// </summary>
    public class OAuthAccessException : Exception
    {
        /// <summary>
        /// Initializes a new instance of the OAuthAccessException class.
        /// </summary>
        public OAuthAccessException()
            : base()
        {
        }

        /// <summary>
        /// Initializes a new instance of the OAuthAccessException class with a specified error message.
        /// </summary>
        /// <param name="message">The error message string.</param>
        public OAuthAccessException(string message)
            : base(message)
        {
        }

        /// <summary>
        /// Initializes a new instance of the OAuthAccessException class with a specified error message and a reference to the inner exception that is the cause of this exception.
        /// </summary>
        /// <param name="message">>The error message string.</param>
        /// <param name="innerException">The inner exception reference. </param>
        public OAuthAccessException(string message, Exception innerException)
            : base(message, innerException)
        {
        }
    }
}
